import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import StudySinglePage from '@/components/StudySinglePage.vue'
import MyButton from '@/components/MyButton.vue'
import User from '@/my/User.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/singlepage',
      name: 'studySinglePage',
      component: StudySinglePage
    },
    {
      path: '/but',
      name: 'myButton',
      component: MyButton
    },
    {
      path: '/user',
      name: 'user',
      component: User
    }
  ]
})
